package com.kung.qvs.utils;

public class Constants {

    public static String DEVICE_TYPE1 = "1"; //蓝牙秤
    public static String DEVICE_TYPE2 = "2"; //打印机

    public static String WEIGHT_UNIT_KG = "0"; //重量单位KG
    public static String WEIGHT_UNIT_JIN = "1"; //重量单位市斤

    public static String forg_name = "健坤工业";

    //本地id 0默认公司信息，1个人编辑的公司信息
    public final static String LOCAL_CODE_DEFAULT = "0";
    public final static String LOCAL_CODE_USER = "1";

    //URL :打印标签生成二维码内容为：URL + PrintCode，其中URL是固定值
    public final static String URL_PRINT = "http://bj.ncpzc.cn/WxPropLicense?code=";

    public final static String PRINT_MODEL_GREEN = "1"; //彩色打印纸
    public final static String PRINT_MODEL_WHITE = "2"; //白色打印纸

    public final static String DEFAULT_ACCOUNT = "admin";   //本地默认用户名
    public final static String DEFAULT_PWD = "123456";    //本地默认密码
    //员工查询账号
    public final static String DEFAULT_WORKER_ACCOUNT = "worker";
    public final static String LOGIN_TYPE_WORKER = "1"; //工作人员
    public final static String LOGIN_TYPE_ADMIN = "2"; //管理员

    //服务器接口
    public static final String ReqSuccess = "success";  //网络请求成功
    public static final String ReqTokenInvalid = "401";    //token失效
    public static final boolean isFormal = false;  //是否是测试服务器
    public static final String serverAddressAPI = isFormal ? "/dev-api" : "/prod-api";

    public static final String reqSynchronizeProductTypes = serverAddressAPI + "/jxzzWeigh/synchronizeProductTypes";    //获取产品类型
    public static final String reqSynchronizeProducts = serverAddressAPI + "/jxzzWeigh/synchronizeProducts";    //获取产品列表
    public static final String reqAddProductBean = serverAddressAPI + "/jxzzWeigh/addProductBean";    //新增产品
    public static final String reqUpdateProductBean = serverAddressAPI + "/jxzzWeigh/updateProductBean";    //修改产品
    public static final String reqDeleteProductBean = serverAddressAPI + "/jxzzWeigh/deleteProductBean";    //删除产品
    public static final String reqSynchronizePackers = serverAddressAPI + "/jxzzWeigh/synchronizePackers"; //获取包粽工列表
    public static final String reqDeletePacker = serverAddressAPI + "/jxzzWeigh/deletePacker"; //删除包粽工
    public static final String reqAddPacker = serverAddressAPI + "/jxzzWeigh/addPacker"; //新增包粽工
    public static final String reqUpdatePacker = serverAddressAPI + "/jxzzWeigh/updatePacker"; //修改包粽工
    public static final String reqUploadWeightRecord = serverAddressAPI + "/jxzzWeigh/uploadWeightRecord"; //上传称重记录
    public static final String reqGetWeightRecord = serverAddressAPI + "/jxzzWeigh/getWeightRecord"; //获取称重记录
    public static final String reqGetWeightRecordStatistics = serverAddressAPI + "/jxzzWeigh/getWeightRecordStatistics"; //获取称重记录统计
    public static final String reqGetWeightRecordStatisticsDetail = serverAddressAPI + "/jxzzWeigh/getWeightRecordStatisticsDetail"; //获取称重记录统计

    public static final int DEFAULT_TIMEOUT = 10;   //超时时间
}
